//
//  ONScrollViewCell.m
//  Volatix
//
//  Created by Familly on 6/18/14.
//  Copyright (c) 2014 Familly. All rights reserved.
//

#import "ONScrollViewCell.h"

@implementation ONScrollViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        NSArray* nib = [[NSBundle mainBundle] loadNibNamed:@"ONScrollViewCell" owner:self options:nil];
        //[[nib objectAtIndex:0] setFrame:CGRectMake(0, 0, 1024, 352)];
        self = [nib objectAtIndex:0];
    }
    return self;
}
-(void)setAllVisible:(BOOL)value
{
    [_UILableSymble setHidden:value];
    [_UIlableDate setHidden:value];
    [_LabelNumber setHidden:value];
    [_buttonCalendar setHidden:value];
}
-(void)setInforCalendar:(NSString *)lable
{
    if(lable==nil){return;}
    _UILableSymble.text =[lable uppercaseString];
}
-(void)setInforDate:(NSString *)date
{
    if(date==nil){return;}
    _UIlableDate.text=date;
}
-(void)setInforLableButton:(NSString*)str
{
    if(str==nil){return;}
    _LabelNumber.text=str;
}
- (IBAction)clickCalendar:(id)sender {
    NSLog(@"click calendar");
    if(_delegate!=nil)
    {
        [_delegate OnClickCalendar:sender];
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
